package my.study.designpattern.decorator.example1;

/**  
 * 装饰者二  
 * @author mouca.he  
 *  
 */  
public class DecoratorTwo extends AbstractDecorator{   
  
    public DecoratorTwo(InterfaceComponent component) {   
        super(component);   
    }   
  
    /**  
     * 根据需要重载模板类preSay()方法  
     */  
    protected void preSay(){   
        System.out.println("DecoratorTwo.preSay():装饰者二的preSay()方法");   
    }   
       
    /**  
     * 根据需要重载模板类afterSay()方法  
     */  
    protected void afterSay(){   
        System.out.println("DecoratorTwo.afterSay():装饰者二的afterSay()方法");   
    }   
  
}   
